************************************   
clear all
set more off
capture log close
clear all

local allfiles : dir . files "*.dta"

foreach f in `allfiles' {
use `f'
saveold `f', version(12) replace
clear
}
 